<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSTL-标签库的使用</title>
</head>
<body>
	escapeXml=true时，
	<c:out value="水平线标记<hr>" escapeXml="true"></c:out>
	<br>
	escapeXml=false时，
	<c:out value="水平线标记<hr>" escapeXml="false"></c:out>
	<br>
	<c:set var="username" value="明日科技" scope="request"></c:set>
	<c:out value="username的值为：${username}"></c:out>
	<br>
	<jsp:useBean id="userInfo" class="com.jsp.study.jstl.UserInfo">
		<c:set target="${userInfo}" property="name">xubin0</c:set>
	</jsp:useBean>
	<c:out value="userInfo的name值为：${userInfo.name}"></c:out>
	<br>
	<c:remove var="username" scope="request"/>
	username的值为：<c:out value="${username}" default="空"></c:out>
	<br>
	<c:catch var="error">
		<jsp:useBean id="userInfo1" class="com.jsp.study.jstl.UserInfo">
			<c:set target="${userInfo}" property="pwd">111</c:set>
		</jsp:useBean>
	</c:catch>
	<c:out value="${error}" />
</body>
</html>